"use strict";
const common_vendor = require("../../common/vendor.js");
const common_assets = require("../../common/assets.js");
if (!Array) {
  const _easycom_uni_tag2 = common_vendor.resolveComponent("uni-tag");
  _easycom_uni_tag2();
}
const _easycom_uni_tag = () => "../../uni_modules/uni-tag/components/uni-tag/uni-tag.js";
if (!Math) {
  _easycom_uni_tag();
}
const _sfc_main = {
  __name: "personalModule",
  props: {
    height: {
      type: Number,
      default: 208
    },
    contentStyle: {
      type: Object,
      default: {
        padding: "16rpx"
      }
    },
    leftWidth: {
      type: Number,
      default: 170
    },
    showGapLine: {
      type: Boolean,
      default: false
    },
    showStatus: {
      type: Boolean,
      default: false
    },
    statusName: {
      type: String,
      default: ""
    },
    statusBgColor: {
      type: String,
      default: "#33A954"
    }
  },
  setup(__props) {
    const props = __props;
    const customStyle = common_vendor.ref("");
    common_vendor.watch(
      () => props.statusBgColor,
      (val) => {
        customStyle.value = `background-color:${props.statusBgColor}; border: none; color: #fff;font-size:25rpx; border-radius: 8rpx; height:35rpx; line-height:35rpx; padding: 4rpx 16rpx;`;
      },
      { deep: true, immediate: true }
    );
    return (_ctx, _cache) => {
      return common_vendor.e({
        a: common_vendor.s(`width: ${__props.leftWidth}rpx;`),
        b: __props.showGapLine
      }, __props.showGapLine ? {} : {}, {
        c: __props.showStatus
      }, __props.showStatus ? {
        d: common_vendor.p({
          text: __props.statusName,
          type: "success",
          ["custom-style"]: common_vendor.unref(customStyle)
        })
      } : {}, {
        e: common_vendor.s(__props.contentStyle),
        f: common_vendor.unref(common_assets.avatar1Icon),
        g: common_vendor.s(`height: ${__props.height}rpx`)
      });
    };
  }
};
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-f131b429"]]);
wx.createComponent(Component);
